package com.training.admin.service;

import java.util.List;
import java.util.Map;

import com.training.admin.entity.trainee.IdmUser;
import com.training.admin.entity.trainer.Trainer;

/**
 * 
 * @author Rockett
 *
 */
public interface TrainerService extends DataService<Trainer>{
	
	/**
	 * list by name
	 * @param name
	 * @return
	 */
	public List<Trainer> listByName(String name);

    /**
     * @param q
     * @return
     */
    public List<Map<String, String>> getTrainerIdAndName(String q);
    
    /**
     * 
     * @param userName
     * @return
     */
    public List<Map<String, String>> getIdmUser(String userName);
    
    /**
     * 
     * @param userName
     * @return
     */
    public List<IdmUser> loadByUserName(String userName);

}
